<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<form:form id="inputForm" data-parsley-validate=""  modelAttribute="turnInVo" onsubmit="return formSaveCancelTurnInLoad('mainCenterDiv','inputForm','${ctx}/doctor/medicalRecord/saveCancleTurnIn','${ctx}/doctor/patVisit/index');" method="post" class="form-horizontal">
    <form:hidden path="id"/>
    <form:hidden path="patientId"/>
    <form:hidden path="patVisitId"/>
                <div class="form-group">
                    <label class="col-sm-4 control-label">姓名：</label>
                    <div class="col-sm-8">
                        <form:input path="name" htmlEscape="false" class="form-control"  maxlength="32" readonly="true"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">性别：</label>
                    <div class="col-sm-8">
                        <form:select path="sex" id="sex" class="form-control" data-parsley-required="true"  disabled="true">
                            <form:options items="${fns:getDictList('SEX_DICT')}" itemLabel="label" itemValue="value"  htmlEscape="false"/>
                        </form:select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">科室：</label>
                    <div class="col-sm-8">
                        <input readonly class="form-control"  maxlength="8" value="${fns:getDeptName(turnInVo.deptAdmissionTo,'' )}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">入院日期：</label>
                    <div class="col-sm-8">
                        <input name="admissionDate" readonly class="form-control" value="<fmt:formatDate value="${turnInVo.admissionDate}" pattern="yyyy-MM-dd"></fmt:formatDate>" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">诊断：</label>
                    <div class="col-sm-8">
                        <form:input path="diagnosis" id="diagnosis" htmlEscape="false" class="form-control"   readonly="true"/>
                    </div>
                </div>


            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input id="btnSubmit" class="btn btn-primary" type="submit" value="确 定" onclick="">&nbsp;
                    <input id="btnCancel" class="btn" type="button" value="关 闭" onclick="closeTurnInForm()"></div>
            </div>
            </form:form>
